package com.example.william.globe;

import java.util.ArrayList;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;


public class GlobeView extends View{

	Paint p;
	static Sand sand;
	
	public GlobeView(Context context) {
		super(context);
		p = new Paint();
		sand = new Sand();
	}
	
	public void onDraw(Canvas c){
		
		p.setAntiAlias(true);
		
		if(GlobeActivity.onTouch){
	    sand.draw(p, c);
	    sand.move(GlobeActivity.getXTouch(), GlobeActivity.getYTouch());
		}
		invalidate();
	}
	
}
